home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / gencsrc.zip / COMPILER.DOC < prev    next >
Text File  |  1987-11-21  |  33KB  |  880 lines

  1. Coronado Enterprises C TUTOR                Nov 21, 1987
  2.  
  3. COMPILER.DOC file
  4.  
  5. Notes on a few C compilers.
  6.  
  7.      It is assumed that you have a C compiler and that you have
  8. somehow learned to use it.  Some helping hints are given below
  9. for some of the more popular compilers and even if your partic-
  10. ular compiler is not listed, some of the hints given for other
  11. compilers may help you with yours.  Some standards do tend to
  12. exist within compilers and compiler writers tend to do things
  13. basically the same way.  If notes are not given below about your
  14. compiler, we at Coronado Enterprises will be unable to help.  We
  15. have listed notes on all of the compilers we have available for
  16. evaluation or use.  These notes are not intended to be exhaustive
  17. or used as the basis for a final decision on your part to select
  18. a given compiler.  Exhaustive notes and evaluations are given
  19. regularly in computer publications.  If you are undecided as to
  20. which compiler you should use, you are directed to these.
  21.  
  22. ******************************************************************
  23.  
  24. The following compilers have been tested on all files in chapters
  25. 1 through 13 and the results are noted.
  26.  
  27.  
  28. 1. Borland Turbo C - Version 1.00  This compiler may be the best
  29.       available at the price.  It is certainly worth the price to
  30.       purchase it for learning the language.  It is extremely flex-
  31.       ible and easy to use once it is set up properly on your com-
  32.       puter.  Follow the notes below to set it up since the users
  33.       guide is extremely confusing concerning setup.
  34.  
  35. 2. Computer Innovations C86 compiler version 2.30J
  36.       This is a very large but capable compiler that you should
  37.       have a hard disk to use.  It is about two years old at this
  38.       writing but a newer version should be available with even
  39.       more capability.
  40.  
  41. 3. Ecosoft C compiler - ver 3.14    This compiler sells for only
  42.       $59.95 and is as complete a compiler as you can find if you
  43.       only need a small memory model.  Their small model uses 64K
  44.       for program and another 64K for data, so the limitation is
  45.       not very severe, and this compiler should meet nearly all
  46.       of your needs.
  47.  
  48. 4. Lattice C compiler - version 3.00      This is a very capable
  49.       compiler that still has the ability to be run conveniently
  50.       with only two floppy disks.  If you want a high end compiler
  51.       to use on a dual floppy machine, this is probably your best
  52.       choice.  The documentation is nearly worthless, and you will
  53.       be left with a mess trying to get it set up until you gain
  54.       some experience programming in C.
  55.  
  56. 5. Mark Williams Let's C Version 3.0.2  This is a relatively
  57.       inexpensive compiler that makes only a small memory model,
  58.       but is certainly adequate for learning to program in C.
  59.       This version is rather old and has been updated, but this
  60.       is the only copy available for test and evaluation at this
  61.       time.
  62.  
  63. 6. Microsoft C compiler - version 3.0
  64. 7. Microsoft C compiler - version 4.0
  65. 8. Microsoft C compiler - version 5.0  These three compilers are
  66.       absolutely top of the line compilers and would make an
  67.       excellent choice if you will be engaged in very serious
  68.       programming.  The only difference in the three are the
  69.       number of features available, but any of them would be
  70.       excellent for use in learning to program in C.  Version
  71.       4.0 and 5.0 have codeview available and version 5.0 allows
  72.       the "modern" method of function definitions.  All three
  73.       compile to very fast, compact code but any of the three
  74.       should be used only with a hard disk, since floppy disk
  75.       use would require much disk swapping.
  76.  
  77. 9. Microsoft Quick-C - version 1.00   This is an excellent com-
  78.       piler that should do everything you ever need to do short
  79.       of a full commercial development project.  It is extrememly
  80.       fast compiling and running, and the only thing that seems
  81.       to be missing is the optimization that the Optimizing C
  82.       compiler does.  It is very easy to use and is well worth
  83.       the price.
  84.  
  85. 10. Mix C Compiler ver 1.0.0  Mix has been advertising a newer
  86.       version of this compiler for only $19.95 and although it
  87.       has some limitations, it would be excellent for learning
  88.       to program in C.
  89.  
  90. ************** Borland Turbo C - version 1.00 **********************
  91.    Borland  International
  92.    4585 Scotts Valley Drive
  93.    Scotts  Valley, CA 95066
  94.  
  95. Due to the ease of use of the Integrated Environment version of
  96. Turbo C, It will be used exclusively by this tutorial.  You can
  97. use the Command Line version of Turbo C with this tutorial, but
  98. all notes in the tutorial will describe use of the Integrated
  99. Environment version.
  100.  
  101. All of the files in the Coronado Enterprises Turbo C tutorial are
  102. designed to work with the Turbo C compiler with all options left
  103. in the default mode (ie - the way the compiler comes from the
  104. factory), and any changes may affect the way some of the example
  105. programs work.
  106.  
  107.  
  108.  
  109. *** Turbo C ****** Suggested Hard Disk Setup *********************
  110. The Turbo C User's Guide has complete instructions describing
  111. how to set up your system for proper use.  Following the direc-
  112. tions given will result in the following directory setup if you
  113. are using a hard disk.  Some of the files have been omitted in
  114. this suggested setup to reduce the clutter in the TURBOC directory.
  115. This will reduce the confusion over extra files as you work your
  116. way through the tutorials.
  117.  
  118.  
  119.    Turbo C disk 1 - INTEGRATED DEVELOPMENT ENV.
  120.    Turbo C disk 2 - COMMAND LINE/UTILITIES
  121.    Turbo C disk 3 - HEADER FILES/LIBRARIES/EXAMPLES
  122.    Turbo C disk 4 - LIBRARIES/EXAMPLES
  123.  
  124. C:\TURBOC\
  125.     TC.EXE                  /* From Turbo C disk 1              */
  126.     TCCONFIG.TC             /* You make this file - See below   */
  127.     TCHELP.TCH              /* From Turbo C disk 1              */
  128.     *.*                     /* From Turbo C Tutor SOURCE disk   */
  129.  
  130. C:\TURBOC\INCLUDE\
  131.     *.H                     /* From Turbo C disk 3              */
  132.  
  133. C:\TURBOC\INCLUDE\SYS\
  134.     STAT.H                  /* From Turbo C disk 3 \SYS\ subdir.*/
  135.  
  136. C:\TURBOC\LIB\
  137.     *.OBJ                   /* From Turbo C disk 3              */
  138.     *.LIB                   /* From Turbo C disk 3              */
  139.     *.OBJ                   /* From Turbo C disk 4 - optional   */
  140.     *.LIB                   /* From Turbo C disk 4 - optional   */
  141.  
  142. The *.OBJ and *.LIB files from disk 4 are needed only if you wish
  143. to use additional memory models.  You only need the "Small" memory
  144. model to run all of the programs included in the Coronado Enter-
  145. prises C tutorial.
  146.  
  147. After creating the subdirectories listed above and loading them
  148. with the files listed, change to the TURBOC directory and create
  149. the TCCONFIG.TC file by following these instructions (note that
  150. the instructions are given on page 16 of the Turbo C User's guide
  151. but they are somewhat cryptic for the beginner).
  152.  
  153. 1.   TC<return>                  This loads the TURBO-C compiler
  154. 2.   O                           Selects "Options"
  155. 3.   E                           Selects "Environment"
  156. 4.   I                           Selects "Include directories"
  157. 5.   \TURBOC\INCLUDE<return>     Sets directory for include files
  158. 6.   L                           Selects "Library directory"
  159. 7.   \TURBOC\LIB<return>         Sets directory for library files
  160. 8.   <Esc>                       Returns to "Options" menu
  161. 9.   S                           Selects "Store options"
  162. 10.  <return>                    Stores file named "TCCONFIG.TC"
  163. 11.  <Esc>                       Return to the TURBO-C main menu
  164.  
  165.  
  166.  
  167.  
  168. To run your first program.  (This assumes FIRSTEX.C has been copied
  169. into the \TURBOC\ directory from the tutorial SOURCE disk.)
  170.  
  171. 1.   TC<return>                  Loads the Turbo C compiler
  172. 2.   F                           Selects "Files"
  173. 3.   L                           Selects "Load"
  174. 4.   <return>                    Lists all files *.C
  175. 5.   Position cursor on FIRSTEX.C
  176. 6.   <return>